﻿using System.Collections.Generic;
using System.Linq;
using Data.Objects.Player;


namespace Data.PlayerData
{
    public class PlayerRepository
    {
        public static IOrderedEnumerable<PlayerCharacter> GetPlayers()
        {
            return new List<PlayerCharacter>
                          {
                              new PlayerCharacter()
                                  {
                                      CurrentHp = 30,
                                      Initiative = 0,
                                      MaxHp = 50,
                                      Name = "Player1",
                                      ClassIcon = "Archer.png"
                                  },
                              new PlayerCharacter()
                                  {
                                      CurrentHp = 10,
                                      Initiative = 0,
                                      MaxHp = 40,
                                      Name = "Player2",
                                      ClassIcon = "Warrior.png"
                                  },
                            new PlayerCharacter()
                                  {
                                      CurrentHp = 5,
                                      Initiative = 0,
                                      MaxHp = 40,
                                      Name = "Player3",
                                      ClassIcon = "Cleric.png"
                                  },
                            new PlayerCharacter()
                                  {
                                      CurrentHp = 40,
                                      Initiative = 0,
                                      MaxHp = 40,
                                      Name = "Player4",
                                      ClassIcon = "Sorceress.png"
                                  }
                          }.OrderByDescending(x => x.Initiative);
        }
    }
}
